package com.yunhe.common.model.data;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 储能pcs整体效率对象
 */
public class PCSWholeEfficiency {
    /**
     * 储能单元代码
     */
    private Long energyUnitCode;
    /**
     * 日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date dtime;
    /**
     * 效率百分比
     */
    private Double val;
    /**
     * 充电1，放电2，整体3
     */
    private Integer type;

    private Double ACAS;

    private Double DCAS;

    public PCSWholeEfficiency() {
    }

    public PCSWholeEfficiency(Long energyUnitCode, Date dtime, Double val, Integer type, Double ACAS, Double DCAS) {
        this.energyUnitCode = energyUnitCode;
        this.dtime = dtime;
        this.val = val> 100.0 ? 100.0 : val;
        this.type = type;
        this.ACAS = ACAS;
        this.DCAS = DCAS;
    }

    public Long getEnergyUnitCode() {
        return energyUnitCode;
    }

    public void setEnergyUnitCode(Long energyUnitCode) {
        this.energyUnitCode = energyUnitCode;
    }

    public Date getDtime() {
        return dtime;
    }

    public void setDtime(Date dtime) {
        this.dtime = dtime;
    }

    public Double getVal() {
        return val;
    }

    public void setVal(Double val) {
        this.val = val> 100.0 ? 100.0 : val;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Double getACAS() {
        return ACAS;
    }

    public void setACAS(Double ACAS) {
        this.ACAS = ACAS;
    }

    public Double getDCAS() {
        return DCAS;
    }

    public void setDCAS(Double DCAS) {
        this.DCAS = DCAS;
    }
}
